//package com.enbatis.mybatisplugs.component;
//
//import com.enbatis.mybatisplugs.service.SysUserService;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.scheduling.annotation.EnableScheduling;
//import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.stereotype.Component;
//
////@Component
////@Configuration
////@EnableScheduling
//public class TimeTask {
//
//    private static final Logger logger = LoggerFactory.getLogger(TimeTask.class);
//
//    SysUserService sysUserService=  (SysUserService)ApplicationContextUtil.getBean("sysUserServiceImpl");
//
//    ThSender sender=(ThSender)ApplicationContextUtil.getBean("thSender");
//
//    @Scheduled(fixedRate=5000)
//    private void configureTasks() {
//
//        try {
//            Thread.sleep(2000);
//        }catch (Exception e){}
//        sender.send();
//
//
//    }
//}
